# 定义类
class Student:
    def __init__(self, name, score):
        print(f"创建了学生{name}，分数是{score}")
        self.name = name
        self.score = score


# 实例化
student1 = Student("张三", 100)

